<template>
	<view class="wrap" style="padding-bottom: 60px;">
		<view v-if="current === 0">
			
			<u-form :model="form" class="apply-form-field">
				<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						<view class="example-body">
									<uni-combox :border="false" :candidates="candidates" placeholder="请选择角色名称" v-model="form.quanxian"></uni-combox>
									<view class="result-box">
									</view>
						</view>
						<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						<u-form-item label="请输入姓名" label-width="150"></u-form-item>
						<u-form-item><u-input type="textarea" placeholder="请输入姓名" v-model="form.userName"/></u-form-item>
						<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						<u-form-item  style="white-space:nowrap" label="请输入身份证号" label-width="150"></u-form-item>
						<u-form-item><u-input type="textarea" placeholder="请输入身份证号" v-model="form.userNumber"/></u-form-item>
						<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						<u-form-item label="请输入电话" label-width="150"></u-form-item>
						<u-form-item><u-input type="textarea" placeholder="请输入电话" v-model="form.phoneNumber"/></u-form-item>
						<u-gap height="20" bg-color="#f5f5f5"></u-gap>
						
					<view solt="right" style="flex:1;text-align: right;align-items: center;">
					</view>					
				</u-form-item>
				
			</u-form>
			<u-row gutter="32" class="bottom-box" justify="center">
				<u-col span="10">
					<view><u-button type="primary" shape="circle"  @click="save">确定</u-button></view>
				</u-col>
			</u-row>
		</view>
		
		
	</view>
</template>
<script>
export default {
	    name:'add-form42',
		data() {
			return {
			show: false,
			candidates: ['志愿者', '行政部门', '志愿者基地', '检察官', '系统管理员'],
			form:{
			quanxian:'',
			userName:'',
			phoneNumber:'',
			userNumber:'',	
			},
			
			list: [{
				name: '添加成员'
			}],
			m2mSimflowList:[],
			m2mOrderFlowList:[],
			current: 0,
			status: 'loadmore',
			iconType: 'circle',
			isDot: false,
			loadText: {
						loadmore: '点击加载更多',
						loading: '正在加载...',
						nomore: '没有更多了'
			},
			}
		},
		created(){
			this.form = {
			quanxian:'',
			userName:'',
			phoneNumber:'',
			userNumber:'',	
			};
		},
		methods: {
			change(index) {
				this.current = index;
			},
			save(){
				this.navTo('/pages/sys/workbench/add-form4?data='+ encodeURIComponent(JSON.stringify(this.form)));
			},
			navTo(url) {
				uni.navigateTo({
					url:url,
				});
			}
		}
 
	}
</script>
<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
	.example-body {
	        margin: 100px;
			padding: 12px;
			background-color: #FFFFFF;
			
		}
	
		.result-box {
			text-align: center;
			padding: 20px 0px;
			font-size: 16px;
		}
		.add-user{
			margin: 10px;
		}
}
</style>
